App.Api.factory('Api.Getnotes ', [function () {
			/**
* Pobiera listę notatek wg różnych kryteriów
* @class getnotes 
*/
function getnotes (){
	/**
	* getnotes
	* @property oper
	* @private 
	*/
	var oper = 'getnotes ',

	/**
	*  właściciel, jak podany to ograniczenie do tego usera, w przeciwnym przypadku wszystkie
	* @property user 
	* @private 
	*/
	user ,

	/**
	*  jak podano, tylko na liście mem.
	* @property mem 
	* @private 
	*/
	mem ,

	/**
	*  czas początkowy
	* @property time 
	* @private 
	*/
	time ,

	/**
	*  czas końcowy dla notatek
	* @property endtime 
	* @private 
	*/
	endtime ,

	/**
	*  notatki wg występowania klucza.
	* @property key 
	* @private 
	*/
	key ,

	/**
	*  tylko notatki powiązane z tą notatką Zwraca (id to id notatki)JSON:{"rez":"ok","notes":[" id1","id2 ",...,"idn "]} JavaScript: var note$rez={"rez":"ok","notes":["id1 "," id2 ",...," idn "]}txt:ok,id1,id2,...,id3HTML: <div rez="ok"><ul><li>id1</li><li>id2</li>...<li>idn</li></ul></div>ll 
	* @property note 
	* @private 
	*/
	note ,

	/**
	*  tylko notatki powiązane z tą notatką Zwraca (id to id notatki)JSON:{"rez":"ok","notes":[" id1","id2 ",...,"idn "]} JavaScript: var note$rez={"rez":"ok","notes":["id1 "," id2 ",...," idn "]}txt:ok,id1,id2,...,id3HTML: <div rez="ok"><ul><li>id1</li><li>id2</li>...<li>idn</li></ul></div>ll 
	* @property note 
	* @private 
	*/
	note ,
	that = this;


	function getOper(noper){
		return oper;
	}
	function getUser(nuser){
		return user ;
	}
	function getMem(nmem){
		return mem ;
	}
	function getTime(ntime){
		return time ;
	}
	function getEndtime(nendtime){
		return endtime ;
	}
	function getKey(nkey){
		return key ;
	}
	function getNote(nnote){
		return note ;
	}

	function setOper(noper){
		oper = noper;
	}
	function setUser(nuser){
		user  = nuser ;
	}
	function setMem(nmem){
		mem  = nmem ;
	}
	function setTime(ntime){
		time  = ntime ;
	}
	function setEndtime(nendtime){
		endtime  = nendtime ;
	}
	function setKey(nkey){
		key  = nkey ;
	}
	function setNote(nnote){
		note  = nnote ;
	}

	function toObject(){
		return{
			oper: oper,
			user : user ,
			mem : mem ,
			time : time ,
			endtime : endtime ,
			key : key ,
			note : note 
		};
	}

	/**
 	* konstruktor
 	*
   	* @constructor         
  	* @method construct    
  	* @public              
 	*/
	(function getnotes (){
		that.getOper = getOper;
		that.getUser = getUser;
		that.getMem = getMem;
		that.getTime = getTime;
		that.getEndtime = getEndtime;
		that.getKey = getKey;
		that.getNote = getNote;
		that.setOper = setOper;
		that.setUser = setUser;
		that.setMem = setMem;
		that.setTime = setTime;
		that.setEndtime = setEndtime;
		that.setKey = setKey;
		that.setNote = setNote;

	})();
}


getnotes .prototype.fromObject = function (obj){
		var object = new getnotes ();
		object.setOper(obj.getOper());
		object.setUser(obj.getUser());
		object.setMem(obj.getMem());
		object.setTime(obj.getTime());
		object.setEndtime(obj.getEndtime());
		object.setKey(obj.getKey());
		object.setNote(obj.getNote());

		return object;
	}

			return getnotes ;
		}]);